import mcpi.minecraft as minecraft
import mcpi.block as block
mc = minecraft.Minecraft.create()
allIds = mc.getPlayerEntityIds()
mc.entity.setPos(allIds[0],0,0,0)
x, y, z = mc.entity.getTilePos(allIds[0])
def buildwall(x,y,z):
    mc.setBlocks(x-110,y,z-110,x+110,y+30,z+110,block.AIR)
    #mc.setBlocks(x-104,y-2,z-104,x+104,y,z+104,block.AIR)
    mc.setBlocks(x-100,y,z-100,x+100,y+7,z+100,block.STONE)
    mc.setBlocks(x-99,y,z-99,x+99,y+7,z+99,block.AIR)
    mc.setBlocks(x-99,y,z-99,x+99,y+5,z+99,block.WOOD,4)
    mc.setBlocks(x-99,y,z-99,x+99,y+4,z+99,block.AIR)
    mc.setBlocks(x-93,y,z-93,x+93,y+7,z+93,block.STONE)
    mc.setBlocks(x-92,y,z-92,x+92,y+7,z+92,block.AIR)
    mc.setBlock(x,y,z,block.NETHER_BRICK)

buildwall(x,y,z)
